package com.example.factoryModel.Interface;

import org.springframework.stereotype.Component;

@Component
public class Dog implements Animal{


    @Override
    public void eat() {
        System.out.println("吃骨头!!");
    }

    @Override
    public void call() {
        System.out.println("汪汪!!");
    }


    @Override
    public String animalName() {
        return "狗";
    }
}
